fix: upgrade @openrouter/ai-sdk-provider to v2.x for AI SDK v6 compatibility#2040
fix: upgrade @openrouter/ai-sdk-provider to v2.x for AI SDK v6 compatibility#2040nick-inkeep merged 1 commit intomainfrom
Conversation
…ibility @openrouter/ai-sdk-provider@1.5.4 declared peer ai@"^5.0.0", conflicting with the repo's ai@6.0.14. Upgrading to ^2.1.0 (resolves to 2.2.3) which declares peer ai@"^6.0.0", eliminating the ERESOLVE warning users see during create-agents quickstart. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: b8d7ebd The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No documentation updates required for this PR. This is an internal dependency version bump with no user-facing API changes. |
There was a problem hiding this comment.
PR Review Summary
(0) Total Issues | Risk: Low
This is a well-executed dependency upgrade that cleanly resolves the peer dependency conflict between @openrouter/ai-sdk-provider and AI SDK v6.
💭 Consider (1) 💭
💭 1) create-agents-template/pnpm-lock.yaml Template lockfile will update on next release
Issue: The create-agents-template lockfile still pins @openrouter/ai-sdk-provider@1.5.4 (which has peer ai@"^5.0.0"). Users running create-agents will continue to see the peer dependency warning until they receive the next published version of @inkeep/agents-core.
Why: This is expected behavior — the template uses "@inkeep/agents-core": "^0.48.2" which will resolve to the fixed version once published. This is a chicken-and-egg situation inherent to the release process, not a defect in this PR.
Fix: No action required in this PR. After release, users running pnpm install fresh or pnpm update @inkeep/agents-core will get the fixed version. The template lockfile will naturally update in future maintenance.
Refs: create-agents-template/pnpm-lock.yaml:2187
✅ APPROVE
Summary: Clean dependency upgrade that correctly resolves the AI SDK v6 peer dependency conflict. The changeset is well-formed (patch is the right classification), the version range is consistent with existing patterns, and the test coverage confirms API compatibility. Ship it! 🚀
Discarded (4)
| Location | Issue | Reason Discarded |
|---|---|---|
packages/agents-core/package.json:151 |
Caret range ^2.1.0 allows minor/patch drift |
Consistent with existing codebase pattern; reviewer noted "no action required" |
.changeset/regular-blue-chameleon.md |
Changeset is well-formed | Positive confirmation, not an issue |
pnpm-lock.yaml |
Lockfile changes are proportional and correct | Positive confirmation, not an issue |
packages/agents-core/package.json |
Major version bump correctly classified as patch | Positive confirmation, not an issue |
Reviewers (2)
| Reviewer | Returned | Main Findings | Consider | While You're Here | Inline Comments | Pending Recs | Discarded |
|---|---|---|---|---|---|---|---|
pr-review-devops |
4 | 0 | 1 | 0 | 0 | 0 | 3 |
pr-review-breaking-changes |
2 | 0 | 0 | 0 | 0 | 0 | 2 |
| Total | 6 | 0 | 1 | 0 | 0 | 0 | 5 |
|
No documentation updates needed — this is an internal dependency fix with no user-facing API changes. |
Summary
@openrouter/ai-sdk-providerfrom^1.2.0(resolving to 1.5.4) to^2.1.0(resolving to 2.2.3)npm warn ERESOLVEpeer dependency conflict users see duringcreate-agentsquickstartProblem
@openrouter/ai-sdk-provider@1.5.4declarespeer ai@"^5.0.0", but@inkeep/agents-coredepends onai@6.0.14. This causes npm to emit confusing peer dependency warnings when users runcreate-agents:Fix
@openrouter/ai-sdk-provider@2.1.0+declarespeer ai@"^6.0.0", which is compatible with ourai@6.0.14. The high-level API (createOpenRouter,openrouter) maintains the same signature — the breaking changes in v2.x are internal type migrations (ProviderV2 → V3) that align with AI SDK v6.Test plan
createOpenRouterandopenrouterdirectly)🤖 Generated with Claude Code